package com.moorror.codegenvel.common.tree.actions.gencode;

import com.moorror.codegenvel.common.tree.MTTreeCell;
import com.moorror.codegenvel.common.tree.TreePanelMark;
import com.moorror.codegenvel.common.tree.actions.AbstractMTTreeCellSelectTreeAction;
import com.moorror.codegenvel.utils.GuiUtils;
import org.jetbrains.annotations.Nullable;

import javax.swing.tree.DefaultMutableTreeNode;

/**
 * @Author jiyanghuang
 * @Date 2025/8/18 07:57
 */
public class GenCodeVelocityAction extends AbstractMTTreeCellSelectTreeAction {

    public GenCodeVelocityAction(TreePanelMark treePanelMark, @Nullable String text, @Nullable String description) {
        super(text, description, GuiUtils.S_SQLITE, treePanelMark);
    }

    @Override
    public void handleSelectTree(DefaultMutableTreeNode mutableTreeNode, MTTreeCell mtTreeCell) {
        mtTreeCell.genCodeVelocity(treePanelMark, mutableTreeNode);
    }
}
